package main

import "fmt"

type Saiyan struct {
	Name  string
	Power int
}

func delr() {
	goku := Saiyan{
		Name:  "Goku",
		Power: 9000,
	}
	goku = Saiyan{}
	goku = Saiyan{Name: "Goku"}
	goku.Power = 9000
}

func main() {
	mainVal()
	mainPoint()
}

func mainPoint() {
	goku := &Saiyan{"Goku", 9000}
	SuperPonit(goku)
	fmt.Println(goku.Power)
}

func SuperPonit(s *Saiyan) {
	s.Power += 10000
}

func mainVal() {
	goku := Saiyan{"Goku", 9000}
	SuperVal(goku)
	fmt.Println(goku.Power)
}

func SuperVal(s Saiyan) {
	s.Power += 10000
}
